package com.wuxianedu.cateye;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;

public class WelcomeActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_welcome);
		
		handler.sendEmptyMessageDelayed(0, 3000L);
		
	}
	
	Handler handler = new Handler(){
		@Override
		public void handleMessage(Message msg) {
			Intent intent = new Intent(WelcomeActivity.this,ListActivity.class);
			startActivity(intent);
			finish();
		};
	};
	
	protected void onDestroy() {
		super.onDestroy();
		handler.removeMessages(0);
	};
}
